package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    //员工登录
    Employee findByUsername(String username);

    //员工列表
    List<Employee> findList(String name);

    //员工添加
    void save(Employee employee);

    //员工修改回显
    Employee faindById(Long id);

    //员工修改
    void update(Employee employee);
}
